<?php $i=0; $days=$kpiData['days']; ?>
<?php  $days=$kpiData['days']; ?>
<?php  $daysNN=$kpiData['daysN-1']; ?>
<?php  $daysMN=$kpiData['daysMN']; ?>
<?php  $daysMNN=$kpiData['daysMN-1']; ?>
<?php debug($daysMN);  ?>

<h2 class="showNextDiv pointer"><?php __('Average Leadtime of process PRM09_KPI')  ?> </h2>
<div class="isHidden">
    <h3 class="showNextDiv pointer"><?php __('Year N');  ?></h3>
    <div class="isHidden">
    <table class="formstatus">
        <thead>
            <tr>
                <th><?php  __('Leadtime') ?></th>
                <th><?php  __('Number') ?></th>
            </tr>
        </thead>
        <tbody>
            <?php foreach($days as $key => $val):  ?>
            <?php (($i%2)>0)?$cl='impair':$cl='pair';  ?>
            <tr class="<?php echo $cl  ?>">
                <td><?php echo __($key,true)  ?></td>
                <td><?php echo $val  ?></td>
            </tr>
            <?php $i++;endforeach;  ?>
        </tbody>
    </table>
        </div>
    <h3 class="showNextDiv pointer"><?php __('Year N-1');  ?></h3>
    <div class="isHidden">
    <table class="formstatus">
        <thead>
            <tr>
                <th><?php  __('Leadtime') ?></th>
                <th><?php  __('Number') ?></th>
            </tr>
        </thead>
        <tbody>
            <?php foreach($daysNN as $key => $val):  ?>
            <?php (($i%2)>0)?$cl='impair':$cl='pair';  ?>
            <tr class="<?php echo $cl  ?>">
                <td><?php echo __($key,true)  ?></td>
                <td><?php echo $val  ?></td>
            </tr>
            <?php $i++;endforeach;  ?>
        </tbody>
    </table>
        </div>
   
</div>